<%@ page contentType="text/html;charset=UTF-8" %>﻿
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>

<link rel="stylesheet" type="text/css" href="${ctx}/static/js/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/js/themes/IconExtension.css" />

</head>
<body style="background: #fff;"> 
	<div style="padding:5px;background:#eee;">
		<a id="saveClose" href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-accept">保存并关闭</a>
		<a id="saveAdd" href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-disk_multiple">保存并新增</a>
		<a id="save" href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-disk">保存</a>
		<a id="cancle" href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-01">取消</a>
		<a id="print" href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-2012081511202">打印</a>
	</div>
	<br/>
	
	<form id="workBillForm" action="${ctx}/workBill/insert" method="POST">
		<input type="hidden" readonly name="type" id="type" ></input>
		<div id="fb" class="easyui-panel" style="padding:10px;" title="基础信息" collapsible="true">
			<table cellpadding="5">
				<tr>
					<td>工单号:</td>
					<td><input class="easyui-textbox" type="text" readonly name="billNo" ></input></td>
					<td>状态:</td>
					<td>
						<select disabled class="easyui-combobox" editable=false name="billStt">
							<option value="0">待分派</option>
							<option value="1">待处理</option>
							<option value="2">待回访</option>
							<option value="3">已完成</option>
							<option value="4">退单</option>
							<option value="9">作废</option>
						</select>
					</td>
					<td>要求开始日期:</td>
					<td><input style="width:140px;" class="easyui-datebox" id="startDate" name="startDate"></input></td>
					<td>实际开始日期:</td>
					<td><input style="width:140px;" class="easyui-datebox" id="factStartDate" name="factStartDate"></input></td>
				</tr>
				<tr>
					<td>请求类型:</td>
					<td>
						<select class="easyui-combobox" editable=false name="requestType">
							<option value="0">维修</option>
							<option value="1">安装</option>
							<option value="2">投诉</option>
						</select>
					</td>
					<td>紧急度:</td>
					<td>
						<select value=1 class="easyui-combobox" editable=false name="emergentType">
							<option value="0">不紧急</option>
							<option selected ="selected" value="1">一般</option>
							<option value="2">紧急</option>
						</select>
					</td>
					<td>要求结束日期:</td>
					<td><input style="width:140px;" class="easyui-datebox" id="endDate" name="endDate"></input></td>
					<td>实际结束日期:</td>
					<td><input style="width:140px;" class="easyui-datebox" id="factEndDate" name="factEndDate"></input></td>
				</tr>
			</table>
		</div>
		<br/>
		<div id="fc" class="easyui-panel" style="padding:10px;" title="客户信息" iconCls="icon-save" collapsible="true">
			<table cellpadding="5" width=100%>
				<tr>
					<td>来电时间:</td>
					<td><input style="width:140px;"  class="easyui-datetimebox" id="phoneTime" name="phoneTime" ></input></td>
					<td>区域:</td>
					<td><select class="easyui-combobox" name="area"><option value="0">湖南</option></select></td></td>
				</tr>
				<tr>
					<td>来电号码:</td>
					<td>
					<input style="width:140px;"  class="easyui-textbox" type="text" value="${phone}" name="customerPhone" data-options="required:true"></input>
					<a href="#" class="easyui-linkbutton" iconCls="icon-search">历史来电</a>
					</td>
					<td>客户名称:</td>
					<td>
					<%
					String name = "";
					String addr = "";
					String phone = request.getParameter("phone");
					if(null!=phone&& phone.equals("18973172735")){
						name="张三";
						addr = "长沙荷花园";
					} 
					%>
					<input value="<%=name %>" style="width:123px;"  class="easyui-textbox" type="text" name="customerName" data-options="required:true"></input>
					<a href="#" class="easyui-linkbutton" iconCls="icon-search">历史来电</a>
					</td>
				</tr>
				<tr>
					<td>客户地址:</td>
					<td colspan=3>
						<input value="<%=addr %>" class="easyui-textbox" type="text" size='125px' name="customerAdd" data-options="required:true"></input>
						<a href="#" class="easyui-linkbutton" iconCls="icon-search">历史来电</a>
					</td>
				</tr>
			</table>
		</div><br/>
		<div id="fp" class="easyui-panel" width="100px;" style="float:left;padding:10px;" title="产品信息/问题描述" collapsible="true">
			<table cellpadding="5" width=100% >
				<tr >
					<td width="8%">产品编号:</td>
					<td width="15%"><input class="easyui-textbox" type="text" name="itmNo" data-options="required:true"></input></td>
					<td  width="72%" rowspan=5><textarea name="issueDesc" style="width:95%;height:90%">问题描述....</textarea></td>
				</tr>
				<tr>
					<td>品名:</td>
					<td><input class="easyui-textbox" type="text" name="itmName" data-options="required:true"></input></td>
				</tr>
				<tr>
					<td>规格:</td>
					<td><input class="easyui-textbox" type="text" name="specification" data-options="required:true"></input></td>
				</tr>
				<tr>
					<td>序列号</td>
					<td><input class="easyui-textbox" type="text" name="seralNo" data-options="required:true"></input></td>
				</tr>
				<tr>
					<td></td>
					<td><a href="#" class="easyui-linkbutton" iconCls="icon-search">设备卡...</a></td>
				</tr>
			</table>
		</div>
		<br/>
		<div id="tabs" class="easyui-tabs" border="true">
			<div title="派工历史记录" style="padding: 10px; overflow: hidden;">123</div>
			<div title="安装历史记录" style="padding: 10px; overflow: hidden;">123</div>
			<div title="维修历史记录" style="padding: 10px; overflow: hidden;">123</div>
		</div>

	</form>
		<script type="text/javascript" src="${ctx}/static/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="${ctx}/static/js/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="${ctx}/static/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="${ctx}/static/workbill/workbill.js"></script>

</body>
</html>